using System;

namespace Confcloud.Email.Templates
{
	public partial class RepairPasswordEmail : EmailQueue<Confcloud.Email.Templates.RepairPasswordEmail>
	{
		public new const string TemplateName = "RepairPassword";

		#region Parameters

		public const string Url = "URL";
		public const string HashCode = "HASHCODE";

		#endregion

		private readonly string _email;
		private readonly string _hashCode;
		private readonly string _url;


		public RepairPasswordEmail(string email, string hashCode, string url)
			: base(TemplateName)
		{
			_email = email;
			_hashCode = hashCode;
			_url = url;
		}


		#region Overrides of RestObject<ParticipantActivationEmail>

		public override Confcloud.Email.Templates.RepairPasswordEmail Get()
		{
			throw new NotImplementedException();
		}

		public override Confcloud.Email.Templates.RepairPasswordEmail Post()
		{
			AddParam(HashCode, _hashCode);
			AddParam(Url, _url);

			base.Recipent = string.Format("{0}", _email);
			return base.Post();
		}

		public override Confcloud.Email.Templates.RepairPasswordEmail Put()
		{
			throw new NotImplementedException();
		}

		public override Confcloud.Email.Templates.RepairPasswordEmail Delete()
		{
			throw new NotImplementedException();
		}

		#endregion
	}
}